﻿using System;
using MUnit;

namespace Maze
{
    class TestHighScore
    {
        [Setup]
        void Setup()
        {
            // This will be run once before each test method
        }

        [Test]
        void CompareEquals()
        {
            HighScoreItem x = new HighScoreItem("Kalle", 10);
            HighScoreComparer comparer = new HighScoreComparer();

            Verify.Equals(0, comparer.Compare(x, x));
        }

        [Test]
        void CompareNotEquals()
        {
            HighScoreItem x = new HighScoreItem("Kalle", 10);
            HighScoreItem y = new HighScoreItem("Kalle", 15);
            HighScoreComparer comparer = new HighScoreComparer();

            Verify.Equals(5, comparer.Compare(x, y));
        }


        [TearDown]
        void TearDown()
        {
            // This will be run once after each test method
        }
    }
}
